//
//  ProtocolVC.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/28.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "ProtocolVC.h"

@interface ProtocolVC ()

@end

@implementation ProtocolVC

- (void)viewDidLoad {
    [super viewDidLoad];
    if (_protocolType == 1) {
        [self setupTitleView:@"《用户服务协议》"];
    } else {
        [self setupTitleView:@"《客户投资服务协议》"];
    }
    self.view.backgroundColor = BACKGROUND_COLOR;
    [self leftButton:nil];
    
    UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [self.view addSubview:web];
    
    if (_protocolType == 1) {
        [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://ludaojinfu.com/appstatichtml/agreement.html"]]];
    } else {
        [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://ludaojinfu.com/appstatichtml/investment.html"]]];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
